import ajax from '../utils/ajax.js'
import api from '../config/api.js'

/**
 * 获取公告列表
 */
import { globalData } from '../config/globalData'
import baseUrl from '../baseUrl'

function getNoticeList (fun = function () {
}) {
  let url = baseUrl.server + api.GET_NOTICE_LIST
  ajax.post(url, {
    token: globalData.access_token,
  }, function (res) {
    fun(res)
  })
}

module.exports = {
  getNoticeList
}
